package org.huifei.a17_iterator;

/**
 * @author: huifei
 * @date: 2017-09-04 11:44
 */
public class Test {

    public static void main(String[] args) {
        Collection collection = new MyCollection();
        Iterator it = (Iterator) collection.iterator();

        while(it.hasNext()){
            System.out.println(it.next());
        }
    }
}
